<?php
/**
 * @file
 * ccloud_wechat.features.inc
 */

/**
 * Implements hook_ctools_plugin_api().
 */
function ccloud_wechat_ctools_plugin_api($module = NULL, $api = NULL) {
  if ($module == "page_manager" && $api == "pages_default") {
    return array("version" => "1");
  }
}

/**
 * Implements hook_default_wechat_response_message_type().
 */
function ccloud_wechat_default_wechat_response_message_type() {
  $items = array();
  $items['ccloud_news'] = entity_import('wechat_response_message_type', '{
    "type" : "ccloud_news",
    "label" : "News (CCloud)",
    "weight" : "0",
    "data" : null,
    "rdf_mapping" : []
  }');
  $items['ccloud_reply'] = entity_import('wechat_response_message_type', '{
    "type" : "ccloud_reply",
    "label" : "Reply (CCloud)",
    "weight" : "0",
    "data" : null,
    "rdf_mapping" : []
  }');
  return $items;
}
